package com.example.nutritionmanager.profile

import android.annotation.SuppressLint
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import com.example.nutritionmanager.ocr.OCRResultScreen
import com.example.nutritionmanager.ui.theme.NutritionManagerTheme
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
class ProfileSecondaryActivity : AppCompatActivity() {

    @SuppressLint("MissingInflatedId")
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val profileType = intent.getIntExtra("profile_type", ProfileType.PROFILE_TYPE_INFO)
        setContent {
            NutritionManagerTheme {
                if (profileType == ProfileType.PROFILE_TYPE_INFO) {
                    ProfileInfoScreen()
                } else if (profileType == ProfileType.PROFILE_TYPE_SETTING) {
                    SettingsScreen()
                }
            }
        }
    }
}